<?php
class viewAction extends myAction
{
	public function execute($request) {
		parent::execute($request);
		$id = $request->getParameter('id');
		
		$this->product = Doctrine::getTable('EdmicItems')->find($id);
		if (!$this->product) {
			$this->redirect('/products');
			return sfView::NONE;
		}			
		$this->lang = $this->sess_lang;		
	}
}